import request from '@/utils/request'

export function fetchDataExtractionGroupList(data) {
  return request({
    url: '/system/dataextraction/DataExtractionGroup/list',
    method: 'post',
    data
  })
}

export function getDataExtractionGroup(id) {
  return request({
    url: '/system/dataextraction/DataExtractionGroup/detail/' + id,
    method: 'get'
  })
}

export function createDataExtractionGroup(data) {
  return request({
    url: '/system/dataextraction/DataExtractionGroup/add',
    method: 'post',
    data
  })
}

export function updateDataExtractionGroup(data) {
  return request({
    url: '/system/dataextraction/DataExtractionGroup/update',
    method: 'post',
    data
  })
}

export function deleteDataExtractionGroup(ids) {
  return request({
    url: '/system/dataextraction/DataExtractionGroup/delete',
    method: 'post',
    data: { ids }
  })
}

